package com.heima.thread.impl.runnable_demo;

public class MyRunnable implements Runnable{
    /**
     * Runs this operation.
     */
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            // 获取当前线程的对象
            Thread t = Thread.currentThread();
            System.out.println(t.getName() + "Hello Runnable!");
        }
    }
}
